package com.ketangpai.admin.service;


import com.ketangpai.admin.entity.User;

public interface UserService {
    //根据用户名查询
    User findByUsername(String username);
    //根据手机号查询
    User findByPhone(String phone);

    //注册
    boolean register(User user) throws Exception;

    User selectById(Integer userId);

    User selectByAccount(String account);

    boolean update(User user);
}
